package com.shopping.huaju.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shopping.huaju.commodity.entity.BrandEntity;
import com.shopping.huaju.common.utils.PageUtils;
import com.shopping.huaju.commodity.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联表
 *
 * @author tofu
 * @email tofu@qq.com
 * @date 2023-11-07 15:20:17
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //自定义 接口 实现 通过 brandId 和 categoryId 添加完整的 CategoryBrandRelationEntity 入库
    boolean saveCategoryBrandRelationEntity(CategoryBrandRelationEntity categoryBrandRelation);

    //自定义接口实现 通过 商品分类获取对应的品牌
    List<BrandEntity> getBrandsByCategoryId(Long categoryId);

}

